<?

require_once $_SERVER['DOCUMENT_ROOT'] . "/kernel/starter.php";
$filename = $MAIN->template->path . "/header.php";

if (file_exists($filename)) {
    require_once $filename;
} else {
    Logger::error("Header [" . $MAIN->template->code . "]template not found");
}/**/